package com.ruoyi.ly.mapper;

import com.github.pagehelper.Page;
import com.ruoyi.ly.domain.MobileIndustry;
import com.ruoyi.ly.domain.dto.PageMobileIndustryDTO;
import com.ruoyi.ly.domain.vo.MobileIndustryVO;
import com.ruoyi.ly.domain.vo.PageMobileIndustryVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface MobileIndustryMapper {
    void update(MobileIndustry mobileIndustry);
    void insert(MobileIndustry mobileIndustry);
    Page<PageMobileIndustryVO> pageQuery(PageMobileIndustryDTO pageMobileIndustryDTO);
    @Delete("delete from mobile_industry where id = #{id}")
    void delete(Long id);
    @Select("select mi.*,p.project_name from mobile_industry mi left join project p on mi.project_id = p.id where mi.id = #{id}")
    MobileIndustryVO selectById(Long id);
}
